package com.xiangyang.pos.bean;

/**
 * Created by Administrator on 2017/8/17 0017.
 *
 * 商品信息数据源
 *
 * @author YeDalin
 *
 */

public class CommodityDataBean {

    private int status;
    private String msg;
    private CommodityData data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public CommodityData getData() {
        return data;
    }

    public void setData(CommodityData data) {
        this.data = data;
    }

    public class CommodityData{

        private String goods_name;
        private String category;//分类
        private float price;

        private String measurement;
        private String unit;

        private int goods_num;

        private String code;

        private String flag;//是否特价

        public String getFlag() {
            return flag;
        }

        public void setFlag(String flag) {
            this.flag = flag;
        }

        public String getMeasurement() {
            return measurement;
        }

        public void setMeasurement(String measurement) {
            this.measurement = measurement;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public int getGoods_num() {
            return goods_num;
        }

        public void setGoods_num(int goods_num) {
            this.goods_num = goods_num;
        }

        private int count;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public float getPrice() {
            return price;
        }

        public void setPrice(float price) {
            this.price = price;
        }

        public int getIntPrice(){
            int intPrice= (int) (price*100);
            return intPrice;
        }

    }

}
